﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using BeatEmUp.Menu;
using BeatEmUp.Characters.Enemies;
using BeatEmUp.HUD;
using BeatEmUp.Items.Weapons;
using BeatEmUp.Enums;
using Microsoft.Xna.Framework.Content;

namespace BeatEmUp.World
{
    class WorldBounds
    {
        private float from, to;

        public float FromPoint
        {
            get
            {
                return this.from;
            }
        }

        public float ToPoint
        {
            get
            {
                return this.to;
            }
        }

        public WorldBounds(int fromPoint, int toPoint)
        {
            if (fromPoint > toPoint)
            {
                throw new ArgumentException(String.Format("Invalid bounds: {0}, {1}", fromPoint, toPoint));
            }

            this.from = fromPoint;
            this.to = toPoint;
        }

        public bool inBounds(int position)
        {
            return (position >= this.from && position <= this.to);
        }
    }
}
